import request from '@/utils/request'

// 查询求谱列表
export function listAsk(query) {
  return request({
    url: '/system/ask/list',
    method: 'get',
    params: query
  })
}

// 查询求谱详细
export function getAsk(askId) {
  return request({
    url: '/system/ask/' + askId,
    method: 'get'
  })
}

// 新增求谱
export function addAsk(data) {
  return request({
    url: '/system/ask',
    method: 'post',
    data: data
  })
}

// 修改求谱
export function updateAsk(data) {
  return request({
    url: '/system/ask',
    method: 'put',
    data: data
  })
}

// 删除求谱
export function delAsk(askId) {
  return request({
    url: '/system/ask/' + askId,
    method: 'delete'
  })
}
